package ch03.singleton;

import java.text.SimpleDateFormat;

/**
 * @author Jane
 * @date 2024-03-22 17:02
 */

public class Test {
    public static void main(String[] args) {



        BaseDao b1 = BaseDao.getInstance();//;new BaseDao();
        BaseDao b2 = BaseDao.getInstance();//;new BaseDao();
        BaseDao b3 = BaseDao.getInstance();//;new BaseDao();
        BaseDao b4 = BaseDao.getInstance();//;new BaseDao();
        BaseDao b5 = BaseDao.getInstance();//;new BaseDao();

        System.out.println(b1.getClass());
        System.out.println(b2.getClass());
        System.out.println(b3.getClass());
        System.out.println(b1 == b2);
        System.out.println(b1 == b3);
        System.out.println(b1 == b4);
    }
}
